package com.ericom.dao.hibernate;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.ericom.dao.OrganizationDao;
import com.ericom.model.Organization;

@Repository("organizationDao")
public class OrganizationDaoHibernate extends
		GenericDaoHibernate<Organization, Long> implements OrganizationDao {

	public OrganizationDaoHibernate() {
		super(Organization.class);
	}

	public List<Organization> findByName(String name) {
		return this.getHibernateTemplate().find("from Organization where name=?",name);
	}

}
